<?php
include('class.php');
session_start();
$db = new DB();
$data=$_POST['data'];
$arr = json_decode($data);
$_SESSION['deleteid']=$arr[0];
//print_r( $arr);
$row=$db->getStaffInfo($arr);
$state=$db->getState($arr);
$birth=$db->getbirth($arr);
$db->close();
?>



	<html>

	<head>
		<link rel="stylesheet" href="bootstrap-theme.css">
		<link rel="stylesheet" href="bootstrap-theme.min.css">
		<link rel="stylesheet" href="bootstrap.min.css">
		<link rel="stylesheet" href="bootstrap.css">
		<link rel="stylesheet" href="DIY.css">
	</head>

	<body>
		<div class="container">
			<ul class="nav nav-tabs">
				<li role="presentation" class="active"><a href="Namelist.php">Staff Information</a></li>
				<li role="presentation"><a href="CheckAttendanceForManager.php">Check Attendance</a></li>
				<li role="presentation"><a href="AttendanceStatistics.php">Attendance Statistics</a></li>
				<li role="presentation"><a href="DailyAssignment.php">Daily Assignment</a></li>
				<li role="presentation"><a href="BulletinForManager.php">Bulletin</a></li>
				<a class="logout" href="Logout.php">Log out</a>
				<label class="logout">Company Name</label>

			</ul>

			<div class="panel panel-default">

			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">Staff Information</h3>
				</div>
				<div class="panel-body">
					<div class="container2">
						<label class="font">Name: <?php echo " ".$row['name']?></label><br/>

						<div class="container3">
							<img src="<?php echo $row['image']?>" style="width:200px;height:200px;" />
						</div>
						<label class="pmargin font">Sex: <?php echo " ".$row['sex']?></label><br/>
						<label class="pmargin font">Birth:&nbsp;&nbsp;&nbsp;<?php echo $birth['year']." "; echo $birth['month']." "; echo $birth['date'];?></label><br/>
						<label class="pmargin font">Level: <?php echo " ".$row['level']?></label><br/>
						<label class="pmargin font">Position: <?php echo " ".$row['position']?></label><br/>
						<label class="pmargin font">State: <?php echo" ". $state?></label><br/>
					</div>



					<div class="panel panel-default container4">
						<div class="panel-body">
							For Manager:</br>
							</br>
							<div class="btn-group" role="group" aria-label="...">
								<form action="delete.php"><button type="submit" class="btn btn-default delete">Delete</button></form>
								<button type="button" class="btn btn-default modify"><a href="Modify.html">Modified</a></button>
							</div>
						</div>
					</div>


				</div>
	</body>

	</html>
